x86_64: Fix Xen relocation size -- there is no longer an allocation
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Jul 2009 07:52:31 +0000 (08:52 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Jul 2009 07:52:31 +0000 (08:52 +0100)
bitmap to account for.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/setup.c

index 0793a74a852889ee17391f442cb6b346a55f5cd9..b7966dfd630214eca87551436985c5f9564af5a1 100644 (file)
@@ -646,8 +646,7 @@ void __init __start_xen(unsigned long mbi_p)
             s >> PAGE_SHIFT, (e-s) >> PAGE_SHIFT, PAGE_HYPERVISOR);
 
 #if defined(CONFIG_X86_64)
-/* Relocate Xen image, allocation bitmap, and one page of padding. */
-#define reloc_size ((__pa(&_end) + max_page/8 + PAGE_SIZE + mask) & ~mask)
+#define reloc_size ((__pa(&_end) + mask) & ~mask)
         /* Is the region suitable for relocating Xen? */
         if ( !xen_phys_start && ((e-s) >= reloc_size) )
         {